package com.morrislabs.facebook
{
	import flash.events.Event;
	import flash.events.IEventDispatcher;
	import flash.events.EventDispatcher;

	public class FacebookController extends EventDispatcher
	{
		private static var instance:FacebookController;
		
		
		public static function getInstance():FacebookController 
		{
			if (instance == null)
			{
				instance = new FacebookController(new SingletonBlocker());
	      	}
	      	return instance;
		}
	
		
		public function FacebookController(blocker:SingletonBlocker)
		{
			super();
	        if (blocker == null) {
	           throw new Error("Error: instantiation failed; Use FacebookController.getInstance()");
	        }			
		}
		
        public override function dispatchEvent(e:Event):Boolean
        {
        	return super.dispatchEvent(e);
		}		
		
	}
}
internal class SingletonBlocker {}
